from multiprocessing.connection import Client
c = Client(('localhost', 20001), authkey=b'peekaboo')
c.send('hello')
print(f"{c.recv() = }")

c.send(42)
print(f"{c.recv() = }")

c.send([1, 2, 3, 4, 5])
print(f"{c.recv() = }")

c.close()